package com.ruoyi.im.domain;

import com.alibaba.fastjson.JSON;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel(value = "UserGroupGrouping")
public class UserGroupGrouping {
    @ApiModelProperty(value = "分组id", position = 1)
    private Long id;
    @ApiModelProperty(value = "分组名称", position = 2)
    private  String groupingName;
    @ApiModelProperty(value = "总人数", position = 3)
    private  Integer userCount;

    @ApiModelProperty(value = "群分组详情", dataType = "UserGroupDetails", position = 4)
    private List<UserGroupDetails> detailsList;

    public void setDetails(String details) {
        this.detailsList = JSON.parseArray(details, UserGroupDetails.class);
    }

}
